﻿using Omu.ValueInjecter;

namespace Utilities.ViewModel
{
    /// <summary>
    /// 为空不映射
    /// </summary>
    public class ConvertNoNull : ConventionInjection
    {
        protected override bool Match(ConventionInfo c)
        {
            //名称相同
            return c.SourceProp.Name == c.TargetProp.Name && c.SourceProp.Value != null;
        }
    }
}
